package city.spring.modules.material.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 实体类：物资领用与物资关系表
 *
 * @author 谢金婷
 * @date 2020-12-17 11:48:32
 */
@Data
@TableName("materialreceipt_material_ext")
public class MaterialreceiptMaterialExtEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 领用申请id
     */
    private String materialreceiptId;

    /**
     * 物资类别
     */
    private String categoryId;
    /**
     * 关联显示物资类别名称，标记该字段不是数据库字段
     */
    @TableField(exist = false)
    private String cname;

    /**
     * 物资名称
     */
    private String materialId;
    @TableField(exist = false)
    private String name;

    /**
     * 物资编码
     */
    private String code;

    /**
     * 计量单位
     */
    private String unitmeasurement;

    /**
     * 单价
     */
    private BigDecimal unitprice;

    /**
     * 申领数量
     */
    private BigDecimal receiptquantity;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime gmtModified;
}